#!/usr/bin/env node

const Koa = require('koa'),
      logger = require('./middleware/logger.js');

const app = new Koa(),
      log = console.log;
app.use(logger);
app.use((ctx) => {  //M-hello
  ctx.body = 'hello koa';
});

app.listen(8080);
